.pagination {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: center;
}
/*.pagination li {*/
/*    margin: 2px;*/
/*}*/
/*.pagination a {*/
/*    min-width: 40px;*/
/*    text-align: center;*/
/*}*/
.pagination li {
    display: inline-block;
    margin: 0 2px;
}
.pagination a {
    padding: 8px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}
.pagination .active a {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}